<markdown>
# 固定头

设定 `height` 来固定头部
</markdown>

<template>
  <x-table :columns="columns" :data="data" style="height: 300px" />
</template>

<script setup>
const columns = [
  { title: 'name', key: 'name' },
  { title: 'age', key: 'age' },
  { title: 'address', key: 'address' }
]

const data = [...Array(20)].map((_, i) => ({
  name: '灬都是个谜 ' + i,
  age: 22,
  address: '佛山市南海区 ' + i
}))
</script>
